﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Sisocana.Core.Models.UsuarioModel>>" %>
    <% if (Model.Count() > 0){ %>
    <table>
        <tr>
            <th>
                Add?
            </th>
            <th>
                User Name
            </th>
        </tr>
        <% foreach (var item in Model) { %>
            <tr>
                <td>
                    <input type="checkbox" name="selectedUsers" value="<%= item.nombreUsuario%>"/>
                </td>
                <td>
                    <%: Html.DisplayFor(modelItem => item.nombreUsuario) %>
                </td>
        </tr>
        <% } %>
    <% } else { %>
        <p> There are not available users to associate</p>
    <% } %>
</table>
